<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>

	<title>New Excursion</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link href="../../style/style.css" rel="stylesheet" type="text/css" />

</h:head>

<h:body>

	<div class="main">

		<div class="header">

			<div class="header_resize">

				<div class="menu">

					<ul>

						<li><a href="../index.xhtml"><span>Home</span></a></li>

						<li><a href="basic.xhtml" class="active"><span>Basic
									Product</span></a></li>

						<li><a href="../packet/packet.xhtml"><span>Travel
									Packet</span></a></li>

					</ul>

				</div>

			</div>

		</div>

		<div class="body">

			<div class="body_resize">

				<div class="left">

					<h2>
						New <span>Excursion</span>
					</h2>

					<h:form>

						<p:panel>

							<h:panelGrid columns="3" id="excursionGrid">

								<h:outputLabel for="name">Name:</h:outputLabel>
								<p:inputText id="name" value="#{excursionBean.excursion.name}" />
								<p:message for="name" />

								<h:outputLabel for="destination">Destination:</h:outputLabel>
								<p:inputText id="destination"
									value="#{excursionBean.excursion.destination}" />
								<p:message for="destination" />

								<h:outputLabel for="price">Price:</h:outputLabel>
								<p:inputText id="price" value="#{excursionBean.excursion.price}" />
								<p:message for="price" />

								<h:outputLabel for="info">Info:</h:outputLabel>
								<p:inputText id="info" value="#{excursionBean.excursion.info}" />
								<p:message for="info" />

							</h:panelGrid>

							<p:commandButton value="Save Excursion" update="excursionGrid"
								action="#{excursionBean.save()}" />

						</p:panel>

					</h:form>

					<h:link outcome="basic" value="back" />

				</div>

				<div class="right">

					<h2>
						Sidebar<span> Menu</span>
					</h2>

					<ul>

						<li><a href="#"> Home</a></li>

						<li><a href="#">Most boughted</a></li>

						<li><a href="#">Top destinations</a></li>

					</ul>

				</div>

				<div class="clr"></div>

			</div>

		</div>

		<div class="footer">

			<div class="footer_resize">

				<p>TravelDream</p>

			</div>

			<div class="clr"></div>

		</div>

	</div>

</h:body>

</html>